<template>
  <view class="content">
    <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2000" :duration="500">
      <swiper-item v-for="item in bannerList">
        <image class="swiperImg" :src="item.img" />
      </swiper-item>
    </swiper>
    <image
      class="imgClass"
      src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimgpp.ztupic.com%2Fu%2Fyr7od7TQVa%2F1632902523580_751237a3.jpg%3Fx-oss-process%3Dimage%2Fcrop%2Cw_1024%2Ch_1542%2Fresize%2Ch_812%2Fquality%2Cq_85%2Fsharpen%2C100&refer=http%3A%2F%2Fimgpp.ztupic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666973156&t=64c894d923ddc2659019d63201f81378"
    />
  </view>
</template>

<script setup lang="ts">
import { reactive, ref, getCurrentInstance, onMounted, ComponentInternalInstance } from "vue";
import fuiButton from "@/components/firstui/fui-button/fui-button.vue";
import Nav from "@/router";
import Service from "@/service";
onMounted(() => {});
const bannerList = ref<Array<any>>([]);
Service.Shop.getBannerList().then(res => {
  console.log(res);
  bannerList.value = res;
});
</script>

<style>
.content {
  min-height: calc(100vh - 120rpx);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.swiper {
  width: 750rpx;
  height: 350rpx;
}
.swiperImg {
  width: 750rpx;
  height: 350rpx;
}
.imgClass {
  width: 750rpx;
  height: 1050rpx;
  display: block;
  margin: 0 20rpx;
}
</style>
